# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-outcome
pkgver=1.0.1
pkgrel=0
pkgdesc="Capture the outcome of Python function calls"
url="https://github.com/python-trio/outcome"
arch="noarch"
license="MIT OR Apache-2.0"
depends="python3 py3-attrs py3-async_generator"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/o/outcome/outcome-$pkgver.tar.gz"
builddir="$srcdir/outcome-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="891ce0a3154972e36eaaf4954866b6869f961d05d22bbecdfcbb8cf8b5352db22ee994cd67f6074e425c3a4f452c73013f421f67cd593ca831e8fe04c730b9d2  outcome-1.0.1.tar.gz"
